<template>
	<view>
		<!-- <view class=""></view> -->
		<rich-text :nodes="dataHtml"></rich-text>
	</view>
</template>

<script>
	
	import {getAgreementNextContent} from "@/api/user.js"
	
	export default {
		data() {
			return {
				dataHtml: ''
			}
		},
		
		onLoad(option) {
			let name = option.name
			if (name) {
				getAgreementNextContent(name)
				.then(res => {
					let code = res.code
					if (code == 0) {
						this.dataHtml = res.data.content
					}
				})
			}
			
			let content = option.content
			if (content) {
				this.dataHtml = content
			}
			
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
